package com.springboot.killingsystem.access;


import com.springboot.killingsystem.domain.SecondKillingUser;

public class UserContext {

    private static final ThreadLocal<SecondKillingUser> userHolder = new ThreadLocal<>();

    public static void setUser(SecondKillingUser user) {
        userHolder.set(user);
    }

    public static SecondKillingUser getUser() {
        return userHolder.get();
    }
}